﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="system.aspx.cs" Inherits="JumbotCms.WebFile.Admin._mail_system" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<title></title>
<link type="text/css" rel="stylesheet" href="../../admin/otherpage/styles/common.css" />
<script type="text/javascript" src="../../_data/SysConfig.js"></script>
<script type="text/javascript" src="../../_libs/jquery-min.js"></script>
<script type="text/javascript" src="../../scripts/jumbotcms.js?v4"></script>
<link type="text/css" rel="stylesheet" href="../../style/global.css" />
<link type="text/css" rel="stylesheet" href="../../_libs/jquery.tabs/style.css">
<!--[if lte IE 7]>
<link rel="stylesheet" href="../../_libs/jquery.tabs/style-ie.css" type="text/css">
<![endif]-->
<link type="text/css" rel="stylesheet" href="../../_libs/jquery.formvalidator/style.css" />
<script type="text/javascript" src="../../_libs/jquery.formvalidator.js"></script>

<script type="text/javascript">
$(document).ready(function(){
	ajaxTopNav('1');
	$.formValidator.initConfig({onError:function(msg){}});
	$("#txtSystemAddress").formValidator({tipid:"tipSystemAddress",onshow:"请输入系统邮箱地址",onfocus:"推荐使用sohu邮箱",oncorrect:""}).RegexValidator({regexp:"email",datatype:"enum",onerror:"格式不正确"});;
	$("#txtSystemNickName").formValidator({tipid:"tipSystemNickName",onshow:"请输入系统邮箱署名",onfocus:"如：将博网",oncorrect:""}).InputValidator({min:1,onerror:"请输入系统邮箱署名"});
	$("#txtSystemPassword").formValidator({tipid:"tipSystemPassword",onshow:"请输入正确的密码",onfocus:"请输入正确的密码",oncorrect:""}).InputValidator({min:1,onerror:"必填"});
	$("#txtSystemMailHost").formValidator({tipid:"tipSystemMailHost",onshow:"请输入SMTP服务器",onfocus:"如：smtp.sohu.com",oncorrect:""}).InputValidator({min:1,onerror:"请输入SMTP服务器"});
});
function ajaxTopNav(n)
{
	$("#tab"+n).toggleClass('tabs-selected');
}
function Button1_onclick() {
    return jQuery.formValidator.PageIsValid('1');
}
</script>
</head>
<body>
<form id="form1" runat="server">
	<br />
	<div>
		<div id="ajaxTopNav">
			<ul class="tabs-nav">
				<li id="tab1"><a href="system.aspx"><span>系统邮箱</span></a></li>
				<li id="tab2"><a href="service.aspx"><span>客服邮箱</span></a></li>
			</ul>
		</div>
		<div class="tabs-container">
<table class="helptable">
	<tr>
		<td><ul>
				<li>不是所有的邮箱都可以设置成功,比如126.com的新用户邮箱</li>
			</ul></td>
	</tr>
</table>
			<table class="formtable">
				<tr>
					<th> 系统邮箱地址 </th>
					<td><asp:TextBox ID="txtSystemAddress" runat="server" MaxLength="80" Width="300px" CssClass="ipt"></asp:TextBox>
						<div class="ValidatorTip" id="tipSystemAddress" style="width:250px"> </div></td>
				</tr>
				<tr>
					<th> 系统邮箱署名 </th>
					<td><asp:TextBox ID="txtSystemNickName" runat="server" MaxLength="20" Width="300px" CssClass="ipt"></asp:TextBox>
						<div class="ValidatorTip" id="tipSystemNickName" style="width:250px"> </div></td>
				</tr>
				<tr>
					<th> 系统邮箱密码 </th>
					<td><asp:TextBox ID="txtSystemPassword" runat="server" MaxLength="30" Width="300px" TextMode="Password" CssClass="ipt"></asp:TextBox>
						<div class="ValidatorTip" id="tipSystemPassword" style="width:250px"> </div></td>
				</tr>
				<tr>
					<th> SMTP服务器 </th>
					<td><asp:TextBox ID="txtSystemMailHost" runat="server" MaxLength="50" Width="300px" CssClass="ipt"></asp:TextBox>
						<div class="ValidatorTip" id="tipSystemMailHost" style="width:250px"> </div></td>
				</tr>
			</table>
			<div class="buttonok">
				<asp:Button ID="Button1" OnClientClick="return Button1_onclick()" runat="server" Text="保存" CssClass="btnsubmit" OnClick="Button1_Click" />
			</div>
		</div>
	</div>
</form>
</body>
</html>
